@import '../../styles/settings.scss';

.m-popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  pointer-events: none;

  &__mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: $popupMaskColor;
    pointer-events: auto;
  }

  &__content {
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  &_center {
    justify-content: center;
    align-items: center;
  }

  &_top {
    justify-content: center;
    align-items: flex-start;
  }

  &_bottom {
    justify-content: center;
    align-items: flex-end;
  }

  &_left {
    justify-content: flex-start;
    align-items: center;
  }

  &_right {
    justify-content: flex-end;
    align-items: center;
  }
}
